package su.example.sms.domain.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.UUID;

@Data
public class ErrorDTO implements Serializable {

    private static final long serialVersionUID = 5122932635980573891L;

    private final String errId;

    private final String errMsg;

    public ErrorDTO(String errMsg) {
        this.errId = UUID.randomUUID().toString();
        this.errMsg = errMsg;
    }
}
